package org.jeecg.modules.demo.pointcount.redis.thread.work;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.moenydata.entity.Moneydatahappycafe;
import org.jeecg.modules.demo.moenydata.service.IMoneydatahappycafeService;
import org.jeecg.modules.demo.pointcount.redis.consumer.SendAndStorageProcess;

/**
 * @Author yw
 * @Date 2021/3/25 10:39
 */
@Slf4j
public class AddMoneyDataTask implements Runnable{

    private static SendAndStorageProcess sendAndStorageProcess;

    IMoneydatahappycafeService moneydatahappycafeService;

    private Moneydatahappycafe data;


    public AddMoneyDataTask(IMoneydatahappycafeService moneydatahappycafeService, Moneydatahappycafe data){
        this.data = data;
        this.moneydatahappycafeService=moneydatahappycafeService;
    }

    public void run() {
        this.moneydatahappycafeService.saveEntiy(data);
    }
}
